<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文件上传</title>
</head>
<body>
    <form method="post" enctype="multipart/form-data">
        <input type="file" name="photo" />
        <input type="submit" value="上传" />
    </form>
    {% if img_url %}
        <img src="{{img_url}}" />
    {% endif %}
</body>
</html>